import App from './App'
import Vue from 'vue';

import './uni.promisify.adaptor'

Vue.config.productionTip = false

import store  from 'store'
Vue.prototype.$store = store

App.mpType = 'app'

//权限跳转
Vue.prototype.navigateTo = (options)=>{
	if( !store.state.user.loginStatus ){
		uni.showToast({
			title:"请先登录",
			icon:"none"
		})
		uni.navigateTo({
		    url:"/pages/logo/logo"
		})
		return	
		
	}
	uni.redirectTo(options)
}

const app = new Vue({
	store,
  ...App
})
app.$mount()
// // #endif

// // #ifdef VUE3
// import { createSSRApp } from 'vue'
// export function createApp() {
//   const app = createSSRApp(App)
//   return {
	  
//     app
//   }
// }
// // #endif